<?php 
if ($_POST)
{
	try
	{
		//POST from Citivox ///////////////////////////////////////////////////////////////////////
		$url = ''; 
		$url .= $_POST['incident_title'].'|';
		$url .= $_POST['incident_description'].'|';
		$url .= $_POST['latitude'].'|';
		$url .= $_POST['longitude'].'|';
		$url .= $_POST['location_name'].'|';
		$url .= $_POST['state'].'|';
		$url .= $_POST['incident_id'].'|';
		$url .= $_POST['jurisdiction_id'].'|';
		$url .= $_POST['task'].'|';
		$url .= $_POST['incident_date'].'|';
		$url .= $_POST['incident_hour'].'|';
		$url .= $_POST['incident_minute'].'|';
		$url .= $_POST['incident_ampm'].'|';
		$url .= $_POST['incident_category'].'|';
		$url .= $_POST['incident_active'].'|';
		$url .= $_POST['incident_status'].'|';
		$url .= $_POST['incident_ticket'].'|';
		$url .= $_POST['media_link'].'|';
		$url .= $_POST['person_first'].'|';
		$url .= $_POST['person_last'].'|';
		$url .= $_POST['person_email'].'|';
		$url .= $_POST['person_phone'].'|';
		$url .= $_POST['detalle_ubicacion'].'|';
		$url .= $_POST['channel'].'|';

		$client = new SoapClient("http://www.cic.mx/tehuan/services/sms_interfacesv2.wsdl"); 
		$result = $client->recReport($url);

		echo $result;
		
	}
	catch (Exception $exception) //SoapFaul $exception)
	{
		echo $exception;
	}
}
?>
